import { Navigation } from 'react-native-navigation';
import { Provider } from 'react-redux';

import MarketScreen from './pages/market/market';
import IcoScreen from './pages/ico/ico';
import MyScreen from './pages/my/my';
import Details from './pages/my/details';
import Login from './pages/common/login';

export const registerScreens = (Store) => {
  Navigation.registerComponent('MarketScreen', () => MarketScreen, Store, Provider);
  Navigation.registerComponent('IcoScreen', () => IcoScreen, Store, Provider);
  Navigation.registerComponent('MyScreen', () => MyScreen, Store, Provider);
  Navigation.registerComponent('Details', () => Details, Store, Provider);
  Navigation.registerComponent('Login', () => Login, Store, Provider);
};